package com.example.login.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Id;

@Data
@TableName("user_info")
public class UserInfo {
    //@Column(name = "id" ,type = MySqlTypeConstant.INT , length = 24,isKey = true)
    @Id
    private Integer id;
    //@Column(name = "number" ,type = MySqlTypeConstant.VARCHAR , length = 24,isKey = false)
    private String number; //学号
    //@Column(name = "name" ,type = MySqlTypeConstant.VARCHAR , length = 24,isKey = false)
    private String name;
    //@Column(name = "gender" ,type = MySqlTypeConstant.VARCHAR , length = 1,isKey = false)
    private String gender;
    //@Column(name = "email" ,type = MySqlTypeConstant.VARCHAR , length = 50,isKey = false)
    private String email;
}
